/*
 * @Author: Mr.Cong Wei
 * @Date: 2022-07-26 19:39:29
 * @LastEditTime: 2022-07-26 22:15:47
 */
const http = require('http');


const getData = require('./src/getData')
http.createServer(function (request, response) {
    // 发送 HTTP 头部 
    // HTTP 状态值: 200 : OK
    // 内容类型: text/plain
    response.writeHead(200, { 'Content-Type': 'text/plain' });
}).listen(3000, function () {
    console.log("server start 3000");
});

getData()


